<?php
/* @var $this TestController */
/* @var $model Test */

$this->breadcrumbs=array(
	'[xx]管理'=>array('admin'),
	'添加[xx]',
);
//设置页面标题
$this->pageTitle=Yii::app()->name.' - 添加[xx]';
$this->contentTitle='添加[xx]';
?>
<!--表单内容-->
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'test-form',
	'enableAjaxValidation'=>false,
        'enableClientValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true
        ),
    'htmlOptions'=>array('class'=>'ajax_form'),
)); ?>
<table cellspacing="1" class="myform">
	<tr>
		<td align="right"><?php echo $form->labelEx($model,'name'); ?></td>
		<td>
			<?php echo $form->textField($model,'name',array('size'=>50,'maxlength'=>50,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'name'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'nickname'); ?></td>
		<td>
			<?php echo $form->textField($model,'nickname',array('size'=>50,'maxlength'=>50,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'nickname'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'gender'); ?></td>
		<td>
			<?php echo $form->textField($model,'gender',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'gender'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'remark'); ?></td>
		<td>
			<?php echo $form->textField($model,'remark',array('size'=>60,'maxlength'=>500,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'remark'); ?>
		</td>
	</tr>

	<tr>
        <td align="right"></td>
        <td>
            <input class="but" type="submit" name="yt0" value="提 交" />        </td>
    </tr>
</table>
<?php $this->endWidget(); ?>
<!--表单内容-->
